

            function addArduinoCod (Blockly) {
            
                        
                        
                        
                        

                        
        Blockly.Arduino['EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203290'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203290'] = ``;
            Blockly.Arduino.definitions_['define_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203290'] = `int touch_PIN${pin}  = ${pin};`;
            Blockly.Arduino.definitions_['setup_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203290'] = `pinMode(touch_PIN${pin},INPUT);`;
             return  [`digitalRead(touch_PIN${pin})==HIGH`];
        }
                    

                        
        Blockly.Arduino['EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203360'] = function(block)
        {
            let scl = this.getFieldValue('scl');
let sdo = this.getFieldValue('sdo');
          
            Blockly.Arduino.definitions_['include_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203360'] = `\n#include "TTP229.h"`;
            Blockly.Arduino.definitions_['define_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203360'] = `TTP229 mTTP229;\r\nint SCLPin${scl} = ${scl}, SDOPin${sdo} = ${sdo};\r\nString Read_Key () {\r\n String key_name = mTTP229.GetKeyMap();\r\n char * result = (char *)key_name.c_str();\r\n return result;\r\n}`;
            Blockly.Arduino.definitions_['setup_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203360'] = `mTTP229.initTTP229(SCLPin${scl}, SDOPin${sdo});`;
             return  `\r\n`;
        }
                    

                        
        Blockly.Arduino['EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203535'] = function(block)
        {
            let key = this.getFieldValue('key');
let status = this.getFieldValue('status');
          
            Blockly.Arduino.definitions_['include_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203535'] = ``;
            Blockly.Arduino.definitions_['define_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203535'] = ``;
            Blockly.Arduino.definitions_['setup_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203535'] = ``;
             return  [`Read_Key()${status}${key}`];
        }
                    

                        
        Blockly.Arduino['EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203652'] = function(block)
        {
            
          
            Blockly.Arduino.definitions_['include_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203652'] = ``;
            Blockly.Arduino.definitions_['define_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203652'] = ``;
            Blockly.Arduino.definitions_['setup_EXT_4X4_MATRIX_KEYBOARD_BLOCK_1607426203652'] = ``;
             return  [`Read_Key()`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        